<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        
    </style>
</head>
<body>
    <div class="demo"></div>
    <script src="../jquery-3.2.1.min.js"></script>
    <script>
        // console.log(add(100));
        // function add (a) {
        //     if(a > 1){
        //         return a + add(a-1);
        //     } else {    
        //         return 1;
        //     }
        // }

        $.ajax({
            type : 'GET',
            url : 'http://localhost/getinfo',
            dataType : 'jsonp',
            success : function (data) {
                console.log(data);
            }
        })
    </script>
</body>
</html>